<?php
/**
 * appRain v 0.1.x
 *
 * LICENSE
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.opensource.org/licenses/mit-license.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@apprain.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2010 appRain, Team. (http://www.apprain.com)
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 *
 * HELP
 *
 * Official Website
 * http://www.apprain.com/
 *
 * Download Link
 * http://www.apprain.com/download
 *
 * Documents Link
 * http ://www.apprain.com/docs
 */
?>
<?php
    $selected = isset($selected) ? $selected : "";
    $section_title = isset($section_title) ? $section_title : "";
?>
<div class="header">
    <div class="top">
        <?php App::Hook('UI')->Render('template_header_top_left_A'); #User Interface Hook ?><h1><?php echo app::load("Helper/Html")->linkTag($this->baseurl("/"),$this->get_config("site_title"));?></h1><?php App::Hook('UI')->Render('template_header_top_left_B'); #User Interface Hook ?>
		<?php App::Hook('UI')->Render('template_header_top_right_A'); #User Interface Hook ?><?php App::Hook('UI')->Render('template_header_top_right_B'); #User Interface Hook ?>
        <div class="comon_title"><?php App::Hook('UI')->Render('template_header_bottom_left_A'); #User Interface Hook ?><?php echo $section_title; ?><?php App::Hook('UI')->Render('template_header_bottom_left_B'); #User Interface Hook ?></div>
    </div>
    <div class="nav">
		<div style="text-align:right">
		<?php App::Hook('UI')->Render('template_header_bottom_right_A'); #User Interface Hook ?></div>
		<div style="text-align:right">
		<?php echo $this->siteMenuClear()
					    ->siteMenu($this->baseurl("/"),'Home','home')
					    ->siteMenuRender('HTML',(isset($selected) ? $selected : ""),'selected');?>
		<?php App::Hook('UI')->Render('template_header_bottom_right_B'); #User Interface Hook ?></div>
    </div>


    <div class="clearboth"></div>
</div>